package com.ims.business.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.ims.common.matatype.impl.BaseModel;
import java.io.Serializable;

/**
 * <p>
 * 微信用户信息
 * </p>
 *
 * @author 陈骑元
 * @since 2019-07-10
 */
@TableName("t_wechat_user")
public class WechatUser extends BaseModel<WechatUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户编号
     */
    @TableId("user_id")
    private String userId;
    /**
     * 昵称
     */
    private String nickname;
    /**
     * 手机号码
     */
    private String mobile;
    /**
     * 用户名
     */
    private String username;
    /**
     * 性别 1男2女
     */
    private String sex;
    /**
     * 头像连接
     */
    @TableField("head_photo_url")
    private String headPhotoUrl;
    /**
     * 微信openid
     */
    private String openid;
    /**
     * 是否会员0否1是
     */
    @TableField("whether_member")
    private String whetherMember;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 小区名称
     */
    @TableField("area_name")
    private String areaName;
    /**
     * 详细地址
     */
    @TableField("detail_address")
    private String detailAddress;
    /**
     * 车牌号
     */
    @TableField("car_num")
    private String carNum;
    /**
     * 型号
     */
    @TableField("car_model")
    private String carModel;
    /**
     * 颜色
     */
    @TableField("car_color")
    private String carColor;


    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getHeadPhotoUrl() {
        return headPhotoUrl;
    }

    public void setHeadPhotoUrl(String headPhotoUrl) {
        this.headPhotoUrl = headPhotoUrl;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getWhetherMember() {
        return whetherMember;
    }

    public void setWhetherMember(String whetherMember) {
        this.whetherMember = whetherMember;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress;
    }

    public String getCarNum() {
        return carNum;
    }

    public void setCarNum(String carNum) {
        this.carNum = carNum;
    }

    public String getCarModel() {
        return carModel;
    }

    public void setCarModel(String carModel) {
        this.carModel = carModel;
    }

    public String getCarColor() {
        return carColor;
    }

    public void setCarColor(String carColor) {
        this.carColor = carColor;
    }

    @Override
    protected Serializable pkVal() {
        return this.userId;
    }

    @Override
    public String toString() {
        return "WechatUser{" +
        "userId=" + userId +
        ", nickname=" + nickname +
        ", mobile=" + mobile +
        ", username=" + username +
        ", sex=" + sex +
        ", headPhotoUrl=" + headPhotoUrl +
        ", openid=" + openid +
        ", whetherMember=" + whetherMember +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", areaName=" + areaName +
        ", detailAddress=" + detailAddress +
        ", carNum=" + carNum +
        ", carModel=" + carModel +
        ", carColor=" + carColor +
        "}";
    }
}
